Methods and apparatus for storage and processing of routing information

ABSTRACT

Method, apparatus and software for processing sets of routing information in a router having a plurality of memory units accessible via separate access paths. The sets of routing information are typically routes received from neighbour nodes. The method includes creating a plurality of non-identical routing information subsets from each received set of routing information, accessing the memory units via the separate access paths and storing the routing information subsets created from a common set of routing information in respective ones of the plurality of memory units, By providing a distributed memory architecture for storing routing information, an increase in a router&#39;s memory requirements can be met by increasing the number of memory units. In addition, the present invention discloses embodiments which distribute computational complexity among multiple processing units in communication with the plurality of memory units, thereby allowing computation of output routing information bases and forwarding tables to occur in parallel.

FIELD OF THE INVENTION

[0001] The present invention relates to internetworking routers and, more particularly, to the storage, processing and distribution of routing information utilized by such routers.

BACKGROUND OF THE INVENTION

[0002] For every node in a network to be able to exchange traffic with every other node, the intermediate nodes between every possible combination of endpoints (i.e., source and destination) must know the direction in which to send traffic so that the traffic can be advanced closer to its destination. In the following, intermediate nodes adapted to decide which path to use for forwarding traffic in this manner are referred to as routers.

[0003] It is possible for a router to know of more than one path for reaching a particular destination. For reasons such as choosing the optimal path and choosing a path consistent with administrative or technical policy, it is necessary for a router to analyze the information it receives from various sources and select the path it wishes to use for the particular destination. This decision process is referred to as “routing”.

[0004] A “routing table” is used by a router to help it make its routing decisions. A routing table inside a router typically includes all the information that the router knows about the topology of the network in terms of links and locations of destinations. A given router's understanding of the topology of the network can come from sources such as static configuration and dynamic routing protocols. Examples of commonly used dynamic routing protocols include both exterior gateway protocols and interior gateway protocols such as border gateway protocol (BGP), open shortest path first (OSPF) and intermediate system to intermediate system (IS-IS), among others.

[0005] Based upon the information in the routing table, the router makes decisions about which path to use for each particular destination, thereby resulting in the creation of a forwarding table. When a router subsequently receives a packet on an interface, it looks up the destination address of the packet in the forwarding table and performs a switching operation, causing the packet to emerge at the particular interface specified in the forwarding table. In this way, the router gets the packet closer to its destination. The acts of receiving a packet, performing a lookup in the forwarding table and sending the packet via the appropriate interface are collectively referred to as “forwarding”.

[0006] It is known that the amount of routing information and the size of a router's routing and forwarding tables increases with the number of interfaces and with the number of possible destination nodes. Given the existing state of memory density and processing speed in the industry, this places a boundary on the number of interfaces that can be supported by the router, depending on the bandwidth of each interface. For instance, the S number of high-speed interfaces that can be supported by some of the most advanced routers given the current configuration of the Internet is limited to about 8-16. At a rate of 10 Gbps per interface, this provides an aggregate routing capacity on the order of 160 Gbps.

[0007] An aggregate routing capacity of this magnitude may conceivably be sufficient to support a relatively slow expansion of the Internet, as was the case when connectivity was limited to a single backbone (known as NSFNET) and restricted to government, educational and military institutions as well as a handful of Internet service providers (ISPs). In late 1994 and early 1995, the NSFNET backbone was decommissioned and since then, the addition of commercial and private interests to the Internet community has caused the number of reachable computers on the Internet to skyrocket. This, coupled with a steady rise in the average bandwidth of individual connections as end users begin to make more use of graphics-intensive services, has resulted in a dramatic increase in the amount of traffic circulating on the Internet, leading, in turn, to a heightened demand on routers to handle greater aggregate capacities. If the existing trend continues, aggregate capacities far exceeding 160 Gbps and interfaces numbering far more than 16 will be required of the next generation of routers. Unfortunately, conventional approaches to increasing router capacity and interface density offer merely incremental improvements and do not scale easily when the aggregate routing capacity and number of interfaces needs to be increased by several orders of magnitude. An important factor contributing to this difficulty is the huge amount of routing information received from each of a large number of interfaces. Firstly, the sheer volume of the received routing information and of the associated forwarding tables becomes prohibitively large and thus virtually impossible to store in the memory of a single controller card. Secondly, the time to access and process the received routing information increases to a point beyond which the delay in responsiveness to a topological change in the network becomes unacceptable.

[0008] An additional factor contributing to the difficulty of scaling a traditional router is the fact that as the Internet evolves from a best-effort network to one with different classes of service and penalty-based service level agreements (SLAs), each link has increasingly complex cost attributes and the optimal path between destinations may be different for different classes of service. The increasing complexity of the calculations on a per-link basis further compounds the complexity of managing and increasing the number of line cards and interfaces.

[0009] Thus, there continues to be a requirement in the industry to provide a router that is scalable to high aggregate capacities and to a large number of interfaces, with the aim of satisfying anticipated increases in the bandwidth demand of the global Internet user community.

SUMMARY OF THE INVENTION

[0010] The present invention endeavours to solve one or more of the above problems by providing a distributed memory architecture for storing routing information. In addition, the present invention describes a particular class of algorithms for processing routing information which distributes computational complexity among multiple control entities in the router. The router is thus scalable across orders of magnitude and hence avoids cost hits up front.

[0011] According a first broad aspect, the invention provides a method and computer readable storage medium comprising software instructions for processing sets of routing information in a router connectable to a plurality of neighbour nodes and having a plurality of memory units accessible via separate access paths. The sets of routing information are typically received from the neighbour nodes. The method includes creating a plurality of non-identical routing information subsets from each received set of routing information, accessing the memory units via the separate access paths and storing the routing information subsets created from a common set of routing information in respective ones of the plurality of memory units.

[0012] In one non-limiting embodiment, each routing information subset from among the routing information subsets created from a common set of routing information has a portion that is not present in any of the other routing information subsets created from the common set of routing information. Moreover, each received set of routing information may include a set of routes, each route having a specificity, wherein the plurality of non-identical subsets of routing information is created from the set of routes in the received set of routing information on the basis of the specificity of each route in the set of routes in the received set of routing information. Storing the routing information subsets created from a common set of routing information in respective ones of the plurality of memory units includes storing each subset of routes created from a common set of routes in a respective one of the memory units associated with that subset.

[0013] In another non-limiting embodiment, the method includes identifying a set of at least two available memory units among the plurality of memory units, wherein creating a plurality of non-identical routing information subsets from each received set of routing information includes creating as many non-identical routing information subsets as there are memory units in the set of available memory units. The method may further include identifying a new set of at least two available memory units among the plurality of memory units and, if the number of available memory units has increased, creating a greater number of non-identical routing information subsets; otherwise, if the number of available memory units has decreased, creating a lesser number of non-identical routing information subsets. The greater number of non-identical routing information subsets may be created by splitting one or more of the routing information subsets having the largest former size, while a lesser number of non-identical routing information subsets may be created by combining two or more of the routing information subsets having the smallest former size.

[0014] The invention may also be summarized broadly as a computer readable storage medium containing a program element for execution by a computing device to implement a received routing information processing entity in a router, the router having a plurality of memory units accessible via separate access paths, the program element including program code means for creating a plurality of non-identical routing information subsets from each received set of routing information, program code means for accessing the memory units via the separate access paths and program code means for causing the routing information subsets created from a common set of routing information to be stored in respective ones of the plurality of memory units.

[0015] According to yet another broad aspect, the invention provides a router for use in a communications network, including a switch fabric, a plurality of interfaces, a plurality of memory units and a control entity. The switch fabric has a plurality of input ports and a plurality of output ports. Each interface is connected to a corresponding input port of the switch, is connectable to a corresponding neighbour node in the network, and is capable of receiving routing information from the corresponding neighbour node. Each memory unit is accessible via a separate access path. The control entity is connected to the interfaces and to the plurality of memory units. The control entity is operable to create a plurality of non-identical routing information subsets from each received set of routing information and to cause the routing information subsets created from a common set of routing information to be stored in respective ones of the plurality of memory units.

[0016] In one embodiment of the router, each interface is capable of receiving traffic packets from the corresponding neighbour node, where each traffic packet has a destination address. Each interface is further adapted to modify a received traffic packet on the basis of the destination address of the traffic packet and on the basis of forwarding information, each interface also being adapted to send modified traffic packets to the corresponding input port of the switch fabric. The control entity may be connected directly to each of the plurality of memory units, thereby to establish the separate access paths of the memory units.

[0017] The router may have a plurality of interface cards, wherein each of the plurality of interfaces is located on a corresponding one of the interface cards and wherein each of the plurality of memory units is located on a corresponding one of the interface cards such that at least two of the interface cards contain different ones of the memory units. The router may also have a plurality of controller cards, wherein each of the plurality of memory units is located on a corresponding one of the controller cards such that at least two of the controller cards contain different ones of the memory units.

[0018] The present invention may further be summarized broadly as a method of distributing routing information among a plurality of memory units, the routing information including a plurality of routes each having a corresponding property, such as route specificity. The method includes associating at least one of the memory units with each route on the basis of the property of that route, at least one of the plurality of routes being associated with fewer than all of the memory units. The method further includes causing each route to be stored in each of the at least one memory unit associated with that prefix.

[0019] These and other aspects and features of the present invention will now become apparent to those of ordinary skill in the art upon review of the following description of specific embodiments of the invention in conjunction with the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In the drawings:

[0021]FIG. 1A is a block diagram of a router in accordance with a first embodiment of the present invention;

[0022]FIGS. 1B to 1F are block diagrams of a router in accordance with variations of the embodiment of FIG. 1;

[0023]FIG. 2 is a diagram illustrating creation of output routing information bases and forwarding information bases from distributed routing information by a control entity, in the case where the control entity is not equipped with parallel processing functionality;

[0024] FIGS. 3 to 8 are block diagrams of a router in accordance with other embodiments of the present invention;

[0025]FIGS. 9A and 9B are diagrams illustrating creation of output routing information bases and forwarding information bases from distributed routing information by a control entity, in the case where the control entity is equipped with parallel processing functionality;

[0026]FIG. 10A is a conceptual diagram showing an example instance of an advertised prefix and a mask associated with a neighbour node; and

[0027]FIG. 10B is a flowchart illustrating the operational steps in a hashing algorithm used to determine where to store information associated with a particular advertised prefix.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0028] With reference to FIG. 1A, there is shown a block diagram of a router 100A in accordance with a first embodiment of the present invention. The router 100A communicates with neighbouring nodes, or peers, in a communications network, typically a packet communications network. The present invention is not limited to the number of peers with which the router 100A is capable of communicating.

[0029] The router 100A includes a number of line cards 104, only one of which is shown. The line cards 104 may all be located in a single chassis or they may occupy more than one chassis. Each line card 104 interfaces with one or more peers via a corresponding number of input/output interfaces (also referred to as input/output ports) 106, only two of which are shown in FIG. 1A. The present invention is not limited to a specific number of line cards 104 in the router 100A or to a specific number of ports 106 on each line card 104. In the illustrated embodiment, line card 104 has two ports 106 which communicate with peers denoted PEER A and PEER B.

[0030] The router 100A further includes a number of controller cards (only one of which is shown at 110). The controller card 110 is also connected to the line card 104 via a control link 134. When many line cards 104 are in use, a bus architecture or a set of dedicated links may be used.

[0031] In addition, the router 100A includes a plurality of memory units used for storing routing information. The present invention is not restricted to the number of memory units used for this purpose. In the illustrated embodiment, there are two suitable memory units denoted 130 _(X) and 130 _(Y). The memory units 130 _(X), 130 _(Y) are accessed via separate access paths, suitably embodied as separate memory buses. In the illustrated embodiment, the controller card 110 is connected directly to the memory units 130 _(X), 130 _(Y) via respective control paths 132 _(X), 132 _(Y). Other implementations shown in FIGS. 1B through 1F are described later on in greater detail.

[0032] The line cards communicate with the peers via the ports. In the illustrated embodiment, the line card 104 communicates with PEER A and PEER B via the ports 106. Such communication may involve the setting up or tearing down of a link or virtual circuit. In one specific embodiment, such communication may include signalling in order to establish a link with each peer at the TCP/IP layer.

[0033] Furthermore, once a link has been established, the line cards may communicate so-called “traffic packets” with the peers across the established link. In the illustrated embodiment, line card 104 exchanges traffic packets with PEER A and PEER B. A traffic packet entering the router 100A typically includes a header and a payload, where the header identifies a destination of that traffic packet. The destination is typically specified as an address, suitably an Internet Protocol (IP) address of a node in the network, not necessarily one of the peers to which the router 100A is connected.

[0034] The line card 104, by which a traffic packet enters the router 100, is responsible for determining by which port (and line card) the traffic packet is to exit the router 100 in order that the packet be advanced closer to its destination. To this end, each line card may be equipped with a circuitry, software or control logic for performing a lookup function 200 on the address of received traffic packets in order to determine the next hop port for each traffic packet. In the illustrated embodiment, the line card 104 include's a lookup mechanism 112 and a memory 114 for this purpose. The lookup mechanism 112 is adapted to consult a “forwarding table” in the memory 114 in an attempt to find a next hop port for the particular destination of each traffic packet received via each of its ports 106. The same forwarding table may be used with two or more line cards.

[0035] The lookup mechanism 112 is also adapted to modify each received traffic packet in such a way that it can be routed by a switch fabric 108. In one embodiment, the lookup mechanism 112 may encapsulate the entire traffic packet into the payload of an encapsulated traffic packet, to which it may append a second header holding the identity of the next hop port associated with the traffic packet. The encapsulated traffic packet is send to the switch fabric 108, where routing of the encapsulated packet takes place.

[0036] A similar process can be used for setting up links such as virtual circuits (VCs). In such cases the control can be in-band or out-of-band and for persistent links the setup rate can be low enough that a lookup mechanism need not exist within each line card.

[0037] The switch fabric 108 has a plurality of input ports 107 and a plurality of output ports 109. In the illustrated embodiment, two input ports 107 and two output ports 109 of the switch fabric are connected to the line card 104 via a plurality of data links 116, in order to allow the exchange of traffic packets between the line card 104 and the switch fabric 108. In addition, the switch fabric 108 is connected to the controller card 110 via a plurality of control links 124.

[0038] The switch fabric 108 can be a self-routing switch fabric, that is, it may be adapted to send each encapsulated traffic packet to the port specified in the encapsulated packet's header. In one embodiment, the switch fabric 108 may be an ASIC-based switch fabric, for example, as described in the following U.S. patent applications, each to Richard Norman et al., filed on Jun. 1, 2001, assigned to the assignee of the present invention and hereby incorporated by reference herein: Ser. Nos. 09/870,703, 09/870,766, 09/870,767, 09/870,800 and 09/870,841.

[0039] Those skilled in the art will appreciate that the processor 112 in the line card 104 may further include circuitry, software or control logic for providing traffic management functionality in order to assist in balancing the load across the switch fabric 108.

[0040] Creation of the forwarding table, also known as a forwarding information base (FIB) is now described. Specifically, the controller card 110 creates the FIB by running a FIB analysis routine on routing information received from the peers. The resultant FIB can be written into the memory 114 via the control link 134 and the lookup mechanism 112, for example. Routing information may be obtained by way of participating in routing protocols. Examples of commonly used routing protocols suitable for use with the present invention include border gateway protocol (BGP), open shortest path first (OSPF) and intermediate system to intermediate system (IS-IS), among others.

[0041] In the following, BGP will be used as an example routing protocol but it should be understood that the present invention is equally applicable to other routing protocols. Moreover, BGP will be discussed at a conceptual level, since the details of BGP will be known to a person of ordinary skill in the art. In the particular case of version 4 of BGP, known as “BGP4”, further information can be found in the book entitled “BGP4: inter-domain routing in the Internet”, by John W. Stewart, III,) 1999 by Addison-Wesley, hereby incorporated by reference in its entirety.

[0042] The routing information may arrive at the line card 104 via the same ports 106 as do traffic packets. While the processor 112 in the line card 104 is responsible for processing the received traffic packets, it is the controller card 110 which is responsible for processing the routing information. To this end, the processor 112 is adapted to forward the routing information to the controller card 110 via the control link 134.

[0043] The controller card 110 then uses the received routing information to construct the FIB by running a FIB analysis routine. In addition, the controller card 110 uses the received routing information to construct output routing information bases which are reciprocally distributed to the peers as routing information. These functions, which are described in greater detail herein below, are performed by a control entity 136 which, in FIG. 1A, is embodied as a CPU 120. The CPU 120 is also responsible for performing such functions as fault management, system security and user interface management. The controller card 110 also includes a memory 122 for temporarily storing the routing information received from PEER A and PEER B via the line card 104 and the control link 134.

[0044] The CPU 120 in the controller card 110 is designed to support an operating environment that has elements of a real-time operating system, as now described with additional reference to FIG. 2. Specifically, the CPU 120 runs various foreground and background tasks. Some of these tasks may involve running separate BGP sessions with the various peers to which the router 100A is connected via the ports 106 and the line card 104. For most of the time, a particular BGP session with a given peer might require no more of the CPU 120 than to exchange so-called “KEEPALIVE” messages with the given peer; such messages, as their name implies, serve to keep the particular BGP session running.

[0045] On occasion, however, background or foreground operation of the CPU 120 may be interrupted by receipt of a so-called “UPDATE” message from a particular peer. The UPDATE message is indicative of the fact that the particular peer is sending new routing information to the router 100A. An interrupt may be received by the CPU 120 via the control link 134 to indicate that a particular peer is sending an UPDATE message. The CPU 120 in the controller card 110 is adapted to react to such an interrupt by accepting/acknowledging the UPDATE message from the peer in question.

[0046] The UPDATE message received from a particular peer includes routing information sent by that peer. Such routing information is representative of the “network layer reachability” of the particular peer, Specifically, the routing information may in some cases specify a set of “prefixes” that are no longer reachable by the peer in question, as well as a set of prefixes that are reachable by that peer.

[0047] In the case of a prefix that is reachable, the routing information may also specify one or more “attributes” associated with that prefix. An example of an attribute associated with a given prefix is the identity of the various autonomous systems which hare been traversed by that piece of routing information, starting with an autonomous system directly connected to the autonomous system identified by that prefix.

[0048] It should be mentioned that prefix is portion of an IP (Internet Protocol) address that uniquely identifies an autonomous system in the global Internet. A prefix is also sometimes referred to in the art as a “route”. As is known in the art of classless inter-domain routing, the length of a prefix might not be a multiple of 8 bits and thus a bit-mask is provided for identifying the true value of a prefix within a multi-octet word. Since the routing updates depend on the number of ports, and not on the port speed, and the number of unique route paths scales less than linearly with the number of ports, distributing memory and processing becomes increasingly practical for large high-speed routers. While having a separate control plane fabric is desirable for low speeds and practical for low port counts, in large fast systems it thus becomes practical to distribute these resources throughout the router and even for these distributed resources to communicate through in-band signalling.

[0049] Accordingly, FIG. 2 illustrates one possible way in which the present invention can provide for distribution of routing information received in sets from a plurality of peers by a router having a plurality of memory units, each adapted to store a subset of each set of routing information. Such a router is suitably embodied by any of the routers 100A through 100F in FIGS. 1A through 1F, respectively. By way of example, a single received set of routing information may form part of an UPDATE message in the context of BGP4.

[0050] In this case, only two peers are considered, namely PEER A and PEER B. However, it should be understood that the present invention applies to any number of peers and in fact may provide advantages when the number of peers greatly exceeds two. Also, it is assumed that PEER A supplies the set of routes R₁, R₂, R₃ and R₄ and that PEER B supplies the set of routes R₁, R₂, R₃ and R₅. Since each route may be associated with an attribute (such as cost) that depends on the peer from which it was received, each route is subscripted according to the peer from which it originates.

[0051] Furthermore, it should be noted in FIG. 2 that for illustrative purposes, processing functions and memory usage appear alongside one another. Processing functions executed by the control entity 136 running on the CPU 120 are denoted by rectangles formed by a thin dashed contour, while memory usage within memory unit 130 _(X) is denoted by rectangles formed by a thick dashed contour and memory usage within memory unit. 130 _(Y) is denoted by rectangles formed by a thick dotted contour. Of course, it should be understood that the use of a greater number of memory units is within the scope of the present invention.

[0052] Firstly, the set of routes received by the CPU 120 from a given peer are temporarily stored in the memory 122 in what may be referred to as an input routing information base (RIB-IN). The RIB-IN for PEER A is denoted RIB-IN_(A) and the RIB-IN for PEER B is denoted RIB-IN_(B). Hence, routes R_(1,A), R_(2,A), R_(3,A) and R_(4,A) are stored in RIB-IN_(A) and routes R_(1,B), R_(2,B), R_(3,B) and R_(5,B) are stored in RIB-IN_(B).

[0053] Next, the control entity 136, which s running on the CPU 120, executes a lookup function 200 to determine in which one(s) of the memory units 130 _(X), 130 _(Y) to store each individual route in each RIB-IN. The lookup function 200 separates the routes in the set of routes into two or more subsets of routes, one for each of the two memory units 130 _(X), 130 _(Y). In the illustrated embodiment, a route can be stored in memory unit 130 _(X) or memory unit 130 _(Y) or both. In embodiments where there is a greater number of memory units available for participating in the storage of routes, a route may be stored in any number of the available memory units.

[0054] The exact distribution of the routes is controllable by selecting a desired lookup function 200. For example, it is within the scope of the invention for routes to be sent to one memory unit or both memory units, depending on any suitable variable, such as a degree of congestion, a time of day or a pre-defined per-route distribution. It is also within the scope of the present invention to group the routes in accordance with their specificity; in fact, such a grouping can lead to additional benefits in terms of parallelism and is discussed in its own right later on.

[0055] It should be appreciated that myriad ways of performing the lookup function 200 are within the scope of the present invention. For example, the lookup function 200 may be performed in hardware by way of a hard-coded lookup table or by executing a hashing function (this latter method shall be described in greater detail later on). This provides a fast and direct way of obtaining the identity of one or more memory units into which the route is to be stored. On the other hand, a slower yet more flexible approach involves consulting a lookup table in software.

[0056] Upon running the lookup function 200 on each set of routes received form each peer, it will eventually be the case that the memory unit 130 _(X) will contain a certain subset of each set of routes for each peer and memory unit 130 _(Y) will contain a different subset of each set of routes for each peer. Assume for the purposes of this example that the lookup function 200 operates on the basis that routes R₁, R₂ and R₄ are sent to memory unit 130 _(X) and routes R₁, R₃ and R₅ are sent to memory unit 130 _(Y). In this case, memory unit 130 _(X) contains routes R_(1,A), R_(2,A) and R_(4,A) from PEER A and routes R_(1,B) and R_(2,B) from PEER B, while memory unit 130 _(Y) holds routes R_(1,A) and R_(3,A) from PEER A and routes R_(1,B,) R_(3,B) and R_(5,B) from PEER B.

[0057] Because the router 100A can learn about the same route through multiple neighbour nodes, the control entity 136 needs to initiate a process to analyze all the routes in all of the memory units in order to determine (1) what routing information it will advertise to its peers and (2) what the effect of the routing information is on the forwarding information base. The latter function may be referred to as a FIB analysis and the former as a RIB analysis.

[0058] Thus, with continuing reference to FIG. 2, the control entity 136 runs a RIB analysis on tie routes stored in memory units 130 _(X), 130 _(Y) in order to decide which reachability information to advertise to PEER A and PEER B. Various known algorithms can be used for this purpose. It is possible that different reachability information will need to be advertised to each of the peers, depending on various administrative and technical policies implemented in the router 100A. This results in the creation of two output routing information bases (RIB-OUTs), one for each peer.

[0059] The control entity 136 also runs a FIB analysis on the routes stored in memory units 130 _(X), 130 _(Y) in order to create a FIB which is sent to the line card 104 for storage in the memory 114. Various known algorithms can be used for this purpose. When more than one line card is used, the FIB is caused to be stored in the memory of each line card.

[0060] The control entity 136 subsequently advertises the contents of each RIB-IN to the associated peer. The routing information is advertised to a given peer by sending an UPDATE message to that peer via the associated port 106 and line card 104. Having advertised routing information to each of its peers, the CPU 120 returns to its usual foreground and background tasks which had been interrupted upon receipt of an UPDATE message.

[0061] In the embodiment illustrated in FIG. 1A, the two memory units 130 _(X), 130 _(Y) are stand-alone entities accessible by the control entity 136 via separate control links 132 _(X), 132 _(Y), respectively. Also, the CPU 122 in the controller card 110 is connected directly to the line card 104 via a control link 134. However, it should be appreciated that many variations are within the scope of the present invention, FIGS. 1B through 1F show example variation of the embodiment of FIG. 1A, in which different connectivity scenarios are illustrated. The CPU 120 in controller card 110 is used as one possible structure for implementing the control entity 136 for each of the embodiments illustrated in FIGS. 1B-1F.

[0062] Specifically, in FIG. 1B, the controller card 110 continues to have direct access to the memory units 130 _(X), 130 _(Y) via the control links 132 _(X), 132 _(Y), respectively. However, instead of the CPU 122 being directly connected to the processor 112, the CPU 122 is connected to the processor 112 via the switch fabric 108. Specifically, the CPU 122 is connected to the switch fabric 108 via the control links 124, while the processor 112 is connected to the switch fabric 108 via a dedicated set of control links 118. A bidirectional control link may be used if the ports 107, 109 of the switch fabric 108 have a bidirectional capability. If the Processor 112 and the CPU 122 are adapted to exchange control packets with one another that resemble encapsulated traffic packets, then the switch fabric 108 can serve a dual purpose, namely one of switch encapsulated traffic packets and switching control packets.

[0063]FIG. 1C shows another variation, in which the control links 118 of FIG. 1B have been dispensed with. This is possible if the data links 116 are used as hybrid lines for transmitting encapsulated traffic packets as well as control packets.

[0064]FIGS. 1D through 1F are identical to FIGS. 1A through 1C, except that the controller card 110 is no longer connected directly to the memory units 130 _(X), 130 _(Y). Rather, the memory units 130 _(X), 130 _(Y) are connected to ports of the switch fabric via respective control links (or sets of control links) 138 _(X), 138 _(Y), such that the controller card 110 is connected to the memory units 130 _(X), 130 _(Y) via the switch fabric 108.

[0065] Although two memory units 130 _(X), 130 _(Y) are used in the examples described herein, it should be understood that the use of more than two memory units is within the scope of the present invention. Moreover, those skilled in the art will appreciate that there are many ways to distribute the memory units 130 _(X), 130 _(Y) within the router. FIGS. 3-7 illustrate examples of distribution of the memory units 130 _(X), 130 _(Y) in accordance with other embodiments of the present invention. The CPU 120 in controller card 110 continues to represent one option for implementing the control entity 136 for each of the embodiments illustrated in FIGS. 3-7.

[0066] Specifically, in FIG. 3, there is shown a router 300 wherein memory unit 130 _(X) is embodied as a dedicated memory unit, while memory unit 130 _(Y) is embodied as the memory 114 on the line card 104.

[0067]FIG. 4 depicts a router 400 wherein memory unit 130 _(X) is embodied as a dedicated memory unit, while memory unit 130 _(Y) is embodied as the memory 122 on the controller card 110.

[0068] In FIG. 5, there is shown a router 500 wherein memory unit 130 _(X) is embodied as the memory 114 on the line card 104, while memory unit 130 _(Y) is embodied as the memory 122 on the controller card 110.

[0069]FIG. 6 shows a router 600 with two line cards 104 _(α), 104 _(β), each having a respective processor 112 _(α), 112 _(β) and a respective memory 114 _(α), 114 _(β). In this case, memory unit 130 _(X) is embodied as the memory 114 _(α) on line card 104 _(α), while memory Unit 130 _(Y) is embodied as the memory 114 _(β) on line card 104 _(β).

[0070]FIG. 7 shows a router 700 with two controller cards 110 _(X), 110 _(Y), each having a respective CPU 120 _(X), 120 _(Y) and a respective memory 122 _(X), 122 _(Y). In this case, memory unit 130 _(X) is embodied as the memory 122 _(X) on controller card 110 _(X), while memory unit 130 _(Y) is embodied as the memory 122 _(Y) on controller card 110 _(Y). The control entity 136 continues to run exclusively on the CPU 120 _(X) of controller card 110 _(X).

[0071] Thus, it will be appreciated by those skilled in the art that the embodiments described herein above help alleviate the memory problem associated with router scaling because information storage is distributed amongst multiple separately accessed memories.

[0072] Notwithstanding these memory savings, however, the use of a centralized control entity 136 for performing the RIB analysis and the FIB analysis, as well as the lookup function 200, may limit the ability of the control entity 136 to efficiently perform other processing tasks, such as advertising the RIB-OUTs to the neighbour nodes. In some cases, the embodiments described herein above may actually increase the computational load of the CPU 120 _(X) implementing the control entity 136 if the lookup function 200 is performed in software. It would therefore be yet even more advantageous if the issue of computational complexity could be addressed at the same time as the memory storage issue.

[0073] To this end, it has been found that it is possible to break down the RIB analysis and the FIB analysis into a parallel processing problem by specially designing the lookup function 200 in such a way as to allow for a logical grouping of the routes amongst multiple memory units. In such an embodiment, multiple processors, such as the CPUs 122 _(X), 122 _(Y) in the controller cards 110 _(X), 110 _(Y), can participate concurrently in the RIB analysis and in the FIB analysis. As will also be shown, the lookup function 200 itself can be sped up by relying on a special class of hashing algorithms.

[0074] Accordingly, FIG. 8 shows a router 800 adapted from the router 700 of FIG. 7, wherein both CPUs 120 _(X), 120 _(Y) on both controller cards 110 _(X), 110 _(Y) are used to implement the control entity 136 in order to reduce the computational burden associated with the RIB analysis and the FIB analysis. Thus, the control entity 136 has two parts, one which resides with CPU 120 _(X) on controller card 110 _(X) and the other which resides with CPU 120 _(Y) on controller card 110 _(Y).

[0075]FIGS. 9A and 9B illustrate operation of the control entity in the router 800 of FIG. 8 in terms of distributing both routing information and computational load. It should be noted in FIGS. 9A and 9B that processing functions executed by the portion of the control entity 136 in processor 120 _(X) are denoted by rectangles formed by a thin dashed contour, processing functions executed by the portion of the control entity 136 in processor 120 _(Y) are denoted by rectangles formed by a thin dotted contour, memory usage within memory unit 130 _(X) is denoted by rectangles formed by a thick dashed contour and memory usage within memory unit 130 _(Y) is denoted by rectangles formed by a thick dotted contour. Of course, it should be understood that the use of a greater number of memory units is within the scope of the present invention.

[0076] In this case, both PEER A and PEER B each supply the same set of routes G₁, G₂, G₃, G₄, G₅, G₆, S₁, S₂, S₃, S₄, S₅, S₆, S₇ and S₈. However, since each route may be associated with an attribute (such as cost) that depends on the peer from which it was received, each route is subscripted according to the peer from which it originates. Of course, it is within the scope of the present invention to provide processing of distinct routes received from different ones of the peers. A likely scenario is that the various peers will supply some routes that overlap and others that are unique to that peer and such a scenario is also within the scope of what can be processed by a router in accordance with an embodiment of the present invention.

[0077] Moreover, the letter “G” that specifies a particular route serves to denote a route that is considered more general than specific, while the letter “S” serves to denote a route that is considered more specific than general. The definitions of “general” and “specific” depend on the traffic typically experienced by the router. Thus, routes considered to be “general” for a core router will tend to have prefixes that are shorter than routes considered to be “general” for an edge router. Of course, such a designation is artificial and merely serves to exemplify an embodiment of the present invention.

[0078] The set of routes received by the CPU 120 _(X) from a given peer are temporarily stored in the memory 122 _(X) in a corresponding input routing information base (RIB-IN). The RIB-IN for PEER A is denoted RIB-IN_(A) and the RIB-IN for PEER B is denoted RIB-IN_(B). Thus, routes G_(1,A), G_(2,A), G_(3,A), G_(4,A), G_(5,A), G_(6,A), S_(1,A), S_(2,A), S_(3,A), S_(4,A), S_(5,A), S_(6,A), S_(7,A) and S_(8,A) are stored in RIB-IN_(A) and routes G_(1,B), G_(2,B), G_(3,B), G_(4,B), G_(5,B), G_(6,B), S_(1,B), S_(2,B), S_(3,B), S_(4,B), S_(5,B), S_(6,B), S_(7,B) and S_(8,B) are stored in RIB-IN_(B).

[0079] Next, the portion of the control entity 136 running on the CPU 120 _(X) executes a lookup function 200 to determine in which one(s) of the memory units 130 _(X), 130 _(Y) to store each individual route in each RIB-IN. The lookup function 200 separates the routes in the set of routes into two or more subsets of routes, one for each of the two memory units 130 _(X), 130 _(Y). In the illustrated embodiment, a route can be stored in memory unit 130 _(X) or memory unit 130 _(Y) or both. In embodiments where there is a greater number of memory units available for participating in the storage of routes, a route may be stored in any number of the available memory units.

[0080] The exact distribution of the routes is controllable by selecting an appropriate lookup function 200, which can suitably be adapted to produce results dependent upon a property of the routes. In this embodiment, the control entity 136 is called upon to establish a logical grouping of the routes; for instance, it is within the scope of the invention for a route to be sent to one memory unit or both memory units on the basis of the specificity of the route. If the route is to be sent to a single memory unit, then the identity of that memory unit will depend on the precise value of the specific route.

[0081] The grouping of routes according to their specificity provides a particular advantage in that it allows certain operations, notably a substantial portion of the generation of the output routing information bases, to be performed in parallel, thereby alleviating the computational burden associated with maintaining up-to-date routing information within the router 100A.

[0082] Again, it should be appreciated that myriad ways of performing the lookup function 200 are within the scope of the present invention. For example, the lookup function 200 may be performed in hardware by way of a hard-coded lookup table or by executing a hashing function (this method is described in greater detail later on). This provides a fast and direct way of obtaining the identity of one or more memory units into which the route is to be stored. On the other hand, a slower yet more flexible approach involves consulting a lookup table in software. In still other cases, hashing may be performed on a general part of the prefix and a lookup table may be used for very specific prefixes.

[0083] Upon running the lookup function 200 on each set of routes received form each peer, it will eventually be the case that the memory unit 130 _(X) will contain a certain subset of each set of routes for each peer and memory unit 130 _(Y) will contain a different subset of each set of routes for each peer. Because of the fact that the lookup function 200 operates on the basis of route specificity, the more general routes will overlap, while the more specific routes will remain uniquely associated with either one or the other of the memory units 130 _(X), 130 _(Y).

[0084] In the illustrated example embodiment, memory unit 130 _(X) contains all the general routes G_(1,A)-G_(6,A), G_(1,B)-G_(6,B) received from each of the peers, as well as routes S_(1,A), S_(3,A), S_(5,A), S_(7,A) from PEER A and S_(1,B), S_(3,B), S_(5,B), S_(7,B) from PEER B. Similarly, memory unit 130 _(Y) also holds all the general routes G_(1,A)-G_(6,A), G_(1,B)-G_(6,B) received from each of the peers, as well as routes S_(2,A), S_(4,A), S_(6,A), S_(8,A) from PEER A and S_(2,B), S_(4,B), S_(6,B), S_(8,B) from PEER B.

[0085] As previously described with reference to FIG. 2, because the router 100A can learn about the same route through multiple neighbour nodes, the control entity 136 needs to initiate a RIB analysis to determine what routing information it will advertise to its peers and a FIB analysis to determine what the effect of the routing information is on the forwarding information base. In accordance with this embodiment of the present invention, the responsibility for performing either or both of the RIB analysis and the FIB analysis is distributed amongst the CPUs 120 _(X), 120 _(Y).

[0086] Specifically, the portion of the control entity 136 on CPU 120 _(X) runs a RIB analysis on the routes stored in memory unit 130 _(X) in order to partly decide on reachability information to advertise to PEER A and PEER B. It is possible that different reachability information will need to be advertised to each of the peers, depending on such considerations as policy and cost. This results in the creation of two partial output routing information bases denoted RIB-OUT_(partial,A,X) (to indicate the partial RIB-OUT generated by the portion of the control entity 136 running on CPU 120 _(X), for PEER A) and and RIBOUT_(partialB,X) (to indicate the partial RIB-OUT generated by the portion of the control entity 136 running on CPU 120 _(X), for PEER B).

[0087] Meanwhile, the portion of the control entity 136 on CPU 122 _(Y) runs a RIB analysis on the routes stored in memory unit 130 _(Y) in order to partly decide on reachability information to advertise to PEER A and PEER B. This results in the creation of two partial output routing information bases denoted RIB-OUT_(partial,A,Y) (to indicate the partial RIB-OUT generated by the portion of the control entity 136 running on CPU 120 _(Y), for PEER A) and and RIBOUT_(partialB,Y) (to indicate the partial RIB-OUT generated by the portion of the control entity 136 running on CPU 120 _(Y), for PEER B).

[0088] The partial output routing information bases then can be processed by the portion of the control entity on CPU 122 _(X) to generate a set of routing information bases (RIB-OUTs) to be advertised to the peers.

[0089] Those skilled in the art will appreciate that similar parallel processing can occur insofar as the FIB analysis is concerned. Thus, the portion of the control entity 136 on CPU 122 _(X) runs a FIB analysis on the routes stored in memory unit 130 _(X) in order to create a partial forwarding information base denoted FIB-OUT_(partial,X), indicative of the partial FIB generated by the portion of the control entity 136 running on CPU 120 _(X).

[0090] Meanwhile, the portion of the control entity 136 on CPU 122 _(Y) runs a FIB analysis on the routes stored in memory unit 130 _(Y) in order create a partial forwarding information base denoted FIB-OUT_(partial,Y), indicative of the partial FIB generated by the portion of the control entity 136 running on CPU 12O_(Y).

[0091] The fact that the RIB analysis and/or the FIB analysis can take place in parallel on multiple CPUs reduces the load of CPU 122 _(X) which is maintaining sessions with the peers. Therefore, not only does this embodiment of the present invention afford a memory savings, but it also alleviates the computational load associated with the generation of routing and forwarding information.

[0092] In the above embodiment, since it is the CPU 122 _(X) which runs BGP4 sessions with all peers, it is the same CPU 122 _(X) which runs the portion of the control entity 136 which is responsible for the lookup function 200 and for generation of a RIB-OUT for each peer from the various corresponding partial RIB-OUTs.

[0093] In other embodiments, such as that shown in FIG. 9B, multiple CPUs may be involved in communication with the peers. In the illustrated embodiment, CPU 122 _(X) is involved in maintaining a BGP4 session with PEER A and CPU 122 _(Y) is involved in maintaining a BGP4 session with PEER B. In this case, the responsibilities for the lookup function 200 are executed by both CPUs as are the responsibilities for consolidating the partial RIB-INs.

[0094] One example of a lookup function 200 which allows a suitable logical grouping of the address space to be realized is now described with reference to FIGS. 10A and 10B. The particular lookup function 200 to be described can be referred to as a hashing algorithm because it considers the individual bits of an advertised prefix associated with a received route. Specifically, the hashing algorithm operates on prefixes that are advertised by the neighbour nodes (peers) in order to determine on which of a plurality of memory units to store each prefix. As is known in the art of classless inter-domain routing, the length of the prefix might not be a multiple of 8 bits and thus a bit-mask is provided for identifying the true value of a prefix within a multi-octet word. The hashing algorithm relies on this mask as well as on the advertised prefix itself in deciding on which controller card to store the advertised prefix.

[0095] For the purposes of this discussion, it will be assumed that there are up to N memory units that are available for storing prefixes and these will be denoted using numeric subscripts 130 ₁, 130 ₂, . . . , 130 _(N) for ease of illustration. It is further assumed for the purposes of this specific example that N is a power of two, although this is not required generally. With specific reference to FIG. 10B, a specific instance of a suitable hashing algorithm begins with an initialization at step 1002 which determines the initial values of two variables, namely “Lower” and “Upper”. As will be described herein below, Lower and Upper represent bit positions and relate to the expected specificity of the routes received from the peers.

[0096] The final values of Lower and Upper determine the range of memory units that will be used for storing the advertised prefix. If Upper is equal to Lower after the hash, then the advertised prefix will be stored in only one memory unit, namely 130 _(Lower) (or 130 _(Upper), which is the same as 130 _(Lower)). If, on the other hand, Upper is greater than Lower after the hash, then the advertised prefix will be stored on all controller cards between 130 _(Lower) and 130 _(Upper), inclusively.

[0097] In this specific embodiment, assuming a 32-bit addressing system, the initial value of Upper is selected as a power of two, within the range from 2 to 2³¹, as a function of the expected specificity of received prefixes, which depends on traffic patterns in the network and on the location of the given router in the network. By way of example, it may be advantageous to set the initial value of Upper to 2²⁸ for a core router, whereas for an edge router, it may be advantageous to set the initial value of Upper to 2¹⁶. This is because the prefixes advertised to a core router are expected to be less specific than the prefixes advertised to an edge router.

[0098] The initial value for Upper is not limited to these two example values. In the absence of a reasoned selection of the initial value of Upper for a given router, a default value for Upper may be used, such as 2²⁴, for example. Once the bit position (and hence the value) of Upper is selected, the value of Lower is chosen, such as Upper/N when N is a power of two. In some circumstances, it may be advantageous to first select Lower and then to make Upper equal to the product of Lower and N.

[0099] At step 1003, both the mask and the advertised prefix are shifted by 32 minus the bit position of Upper. In other words, any route specificity which is due to a shorter mask than 32−log₂(Upper) is discarded. At step 1004, the hashing algorithm enters a loop, which first queries whether the most significant bit of the (shifted) mask is set to 1. In most cases, a first pass through the hashing algorithm will reveal that the most significant bit (MSB) of the mask is indeed set, Which will cause the hashing algorithm to execute step 1008. However, if not, then the hashing algorithm exits the loop and proceeds to step 1006, which causes the advertised prefix to be stored on all memory units 130 (i) for which Lower≦i≦Upper.

[0100] At step 1008, it is verified whether the most significant bit of the advertised prefix is set. This may or may not be the case, depending on the prefix itself. In one of the two cases, the value of Lower is increased and in the other case, the value of Upper is decreased. In the example flowchart shown in FIG. 10B, the value of Lower is increased by one-half the value of the difference between Upper and Lower (at step 1010) if the most significant bit of the advertised prefix is set; otherwise, the value of Upper is decreased by one-half the difference between Upper and Lower (at step 1012). Following either step 1010 or step 1012, both the mask and the advertised prefix are shifted left by one bit at step 1014.

[0101] At step 1016, it is verified whether the number of left shifts since entering the loop at step 1004 has exceeded log₂(N), the number of bits required to represent the number of available memory units. If the number of such left shifts is less than log₂(N), the hashing algorithm returns to the beginning of the loop at step 1004. However, if the number of left shifts has exceeded log₂(N), then the hashing algorithm proceeds to step 1006, which causes the advertised prefix to be stored on all memory units 130 (i)) for which i falls between the current values of Lower and Upper, inclusively.

[0102] In accordance with the hashing algorithm, therefore, longer prefixes (i.e., more specific/less general routes) will be stored in fewer locations while shorter prefixes (i.e., less specific/more general routes) will be stored in a greater number of locations. Thus, the hashing algorithm provides some duplicate storage of prefixes within the router. However, the memory requirement per controller card remains on the order of 1/N of the total memory requirement for the router, which grows approximately linearly with the number of interfaces. Thus, it is possible to, accommodate the growth in the memory requirement of the router by increasing the number of available memory units, thereby achieving a high degree of scalability.

[0103] It should be understood that lookup function 200 s other than the hashing algorithm described herein above exist which also achieve a logical grouping of the address space so as to permit parallel RIB analysis and/or FIB analysis to take place. For instance, those skilled in the art may be aware of lookup function 200 s that operate on the basis of the bit pattern, density, value, length, etc. of a prefix and which allow partial RIB-OUTs or partial FIBs to be generated without centralized intervention.

[0104] Those skilled in art should appreciate that the present invention is applicable to protocols other than BGP4 and to routing information that differs from that usually exchanged in the context of BGP4. For example, it is envisaged that in the case of the open shortest path first (OSPF) protocol, storage of the OSPF link state advertisement (LSA) linked list and the OSPF candidate table may be distributed across multiple memory units, either in the line cards 104 or the controller cards 110 _(X), 110 _(Y) or both. Furthermore, multiple protocols may run simultaneously and the memory storage requirements for each protocol may be similarly distributed.

[0105] Moreover, in other embodiments of the present invention, it may be advantageous to purposely duplicate the storage of routing information in order to increase robustness. For example, a lookup function 200, which operates on a prefix and which knows of a group of N available memory units and a group of M spare memory units, may be designed in such a way as to identify anywhere from 2 to N+M of the memory units for storage of a particular prefix (depending on its specificity, length, value, bit pattern, etc.) This added protection feature would allow a routing protocol to continue to operate undisturbed even if one of the memory units fails, since a duplicate version of the corresponding partial RIB-OUTs and partial FIB exist elsewhere.

[0106] Those skilled in the art should further appreciate that it may be advantageous for the control entity 136 to know which memory units will be used for the storage of routing information and which will not. The memory units that are to be used for storage of routing information are hereinafter referred to as “available” memory units, and those which are not to be used for storage of routing information are hereinafter referred to as “unavailable” memory units.

[0107] To achieve the desired functionality, it is within the scope of the present invention for the control entity to perform a setup operation, during which occurs detection of the identity of those memory units 130 _(X), 130 _(Y) that are available for participating in distributed storage of routing information. If the memory units 130 _(X), 130 _(Y) are stored amongst the line cards 104, this can be achieved by configuring the line cards 104 to communicate an availability message to the control entity. Such a message could be sent by a line card 104 upon connection of the line card 104 or could be sent periodically in order to allow the control entity 136 to detect when the line card 104 fails or has been disconnected.

[0108] In order to achieve an equitable distribution of memory storage responsibilities, the lookup function 200 could be modified to respond to changes in the number and identity of the available memory units. For example, when a new memory unit becomes available, the lookup function 200 may adapt so that the routes are more evenly distributed. This may be done in one embodiment by splitting the responsibilities of memory unit associated with the largest number of routes such that storage of some of its routes is now the responsibility of the new memory unit.

[0109] In this way, it is possible to achieve an equitable distribution of memory requirements amongst available resources. Moreover, this feature allows the router 100 to be scaled dynamically to large numbers of interfaces 106. Specifically, if the memory units 130 are embodied as the memories 114 in the line cards 104 and if the number of line cards 104 (and ports 106) doubles, then the available storage space will also double. Since the volume of routing information increases with the number of ports, the added storage space triggers a redistribution of the storage responsibilities and allows the memory requirement for any single line card to remain approximately constant.

[0110] The resulting distribution of storage responsibilities may be such that each available memory is equally used or approximately equally used. On the other hand, this may not always be possible or desirable (e.g., when using memory units of varying capacities) and thus it is within the scope of the invention to allow wide variations in the amount of routing information stored amongst the various available memory units.

[0111] Another advantage in detecting the number of available memory units is apparent when considering the scenario in which one of the memory units fails (e.g., upon failure or disconnection of a line card). According to an embodiment of the present invention, the remaining memory units take over the storage responsibilities under control of control entity 136. Specifically, when a particular memory unit becomes unavailable, the lookup function 200 may change so that the routes are more evenly distributed. This may be done in one embodiment by combining the former responsibilities of now-unavailable memory unit with those of the memory unit responsible for storing the least number of routes. Modification of the lookup function 200 in response to changes in the number or identity of available memory units is advantageously achieved when the lookup function 200 is implemented in software.

[0112] It should further be appreciated that in some embodiments of the invention, all or part of the functionality previously described herein with respect to the processing units in the controller cards may be implemented as pre-programmed hardware or firmware elements (e.g., application specific integrated circuits (ASICs), electrically erasable programmable read-only memories (EEPROMs), etc.), or other related components. In particular, it may be advantageous from a cost or complexity perspective to use a hardware element for performing, or assisting in the performance of, the hashing algorithm.

[0113] In other embodiments of the invention, all or part of the functionality previously described herein with respect to the lookup function 200 may be implemented as software consisting of a series of instructions for execution by a computer system. The series of instructions could be stored on a medium which is fixed, tangible and readable directly by the computer system, (e.g., removable diskette, CD-ROM, ROM, or fixed disk), or the instructions could be stored remotely but transmittable to the computer system via a modem or other interface device (e.g., a communications adapter) connected to a network over a transmission medium. The transmission medium may be either a tangible medium (e.g., optical or analog communications lines) or a medium implemented using wireless techniques (e.g., microwave, infrared or other transmission schemes).

[0114] Those skilled in the art should further appreciate that the series of instructions may be written in a number of programming languages for use with many computer architectures or operating systems. For example, some embodiments may be implemented in a procedural programming language (e.g., “C”) or an object oriented programming language (e.g., “C++” or “JAVA”).

[0115] While specific embodiments of the present invention have been described and illustrated, it will be apparent to those skilled in the art that numerous modifications and variations can be made without departing from the scope of the invention as defined in the appended claims. 

We claim:
 1. In a router connectable to a plurality of neighbour nodes, the router having a plurality of memory units accessible via separate access paths, a method of processing sets of routing information received from corresponding ones of the neighbour nodes, comprising: creating a plurality of non-identical routing information subsets from each received set of routing information; accessing the memory units via the separate access paths; and storing the routing information subsets created from a common set of routing information in respective ones of the plurality of memory units.
 2. A method as claimed in claim 1, wherein each received set of routing information includes a set of routes and wherein creating a plurality of non-identical routing information subsets from each received set of routing information includes creating a plurality of non-identical subsets of routes from the set of routes in the received set of routing information.
 3. A method as claimed in claim 2, each route having a specificity, wherein the plurality of non-identical subsets of routes is created from the set of routes in the received set of routing information on the basis of the specificity of each route in the set of routes in the received set of routing information.
 4. A method as claimed in claim 2, wherein storing the routing information subsets created from a common set of routing information in respective ones of the plurality of memory units includes storing each subset of routes created from a common set of routes in a respective one of the memory units associated with that subset.
 5. A method as claimed in claim 1, wherein each routing information subset from among the routing information subsets created from a common set of routing information has a portion that is not present in any of the other routing information subsets created from said common set of routing information.
 6. A method as claimed in claim 5, wherein each received set of routing information includes a set of routes and wherein creating a plurality of non-identical routing information subsets from each received set of routing information includes creating a plurality of non-identical subsets of routes from the set of routes in the received set of routing information.
 7. A method as claimed in claim 6, wherein storing the routing information subsets created from a common set of routing information in respective ones of the plurality of memory units includes storing each subset of routes created from a common set of routes in a respective one of the memory units associated with that subset.
 8. A method as claimed in claim 7, further comprising: for each memory unit, creating a forwarding sub-table associated with that memory unit from all subsets of routes stored in that memory unit.
 9. A method as claimed in claim 8, further comprising: storing each forwarding sub-table in the memory unit associated with that forwarding sub-table.
 10. A method as claimed in claim 8, farther comprising: creating a complete forwarding table from all the forwarding sub-tables.
 11. A method as claimed in claim 9, further comprising: for each memory unit and for each neighbour node, creating a partial output routing information base associated with that memory unit and that neighbour node from all subsets of routes stored in that memory unit.
 12. A method as claimed in claim 11, further comprising: for each neighbour node, creating a complete output routing information base associated with that neighbour node from all partial output routing information bases associated with that neighbour node.
 13. A method as claimed in claim 12, further comprising: advertising to each of the at least one neighbour node the complete output routing information base associated with that neighbour node.
 14. A method as claimed in claim 1, wherein each received set of routing information includes a set of prefixes and associated attributes and wherein creating a plurality of non-identical routing information subsets from each received set of routing information includes creating a plurality of non-identical subsets of prefixes and associated attributes from the set of prefixes and associated attributes in the received set of routing information.
 15. A method as claimed in claim 1, wherein each received set of routing information includes a set of learned locations and wherein creating a plurality of non-identical routing information subsets from each received set of routing information includes creating a plurality of non-identical subsets of learned locations from the set of learned locations in the received set of routing information.
 16. A method as claimed in claim 1, further comprising: identifying a set of at least two available memory units among the plurality of memory units; wherein creating a plurality of non-identical routing information subsets from each received set of routing information includes creating as many non-identical routing information subsets as there are memory units in the set of available memory units.
 17. A method as claimed in claim 16, wherein storing the routing information subsets created from a common set of routing information in respective ones of the plurality of memory units includes storing the routing information subsets created from the common set of routing information in respective ones of the at least two memory units in the set of available memory units.
 18. A method as claimed in claim 16, further comprising: identifying a new set of at least two available memory units among the plurality of memory units; creating as many non-identical routing information subsets from each received set of routing information as there are memory units in the new set of available memory units.
 19. A method as claimed in claim 18, further comprising: storing the routing information subsets created from a common set of routing information in respective ones of the plurality of available memory units includes storing the routing information subsets created from the common set of routing information in respective ones of the at least two memory units in the new set of available memory units.
 20. A method as claimed in claim 16, further comprising: identifying a new set of at least two available memory units among the plurality of memory units; if the number of available memory units has increased, creating a greater number of non-identical routing information subsets; and if the number of available memory units has decreased, creating a lesser number of non-identical routing information subsets.
 21. A method as claimed in claim 20, each routing information subset being associated with a size prior to identification of the new set of at least two available memory units, the method further comprising: if the number of available memory units has increased, creating a greater number of non-identical routing information subsets by splitting one or more of the routing information subsets having the largest former size.
 22. A method as claimed in claim 20, each routing information subset being associated with a size prior to identification of the new set of at least two available memory units, the method further comprising: if the number of available memory units has decreased, creating a lesser number of non-identical routing information subsets by combining two or more of the routing information subsets having the smallest former size.
 23. A method as claimed in claim 21, further comprising: if the number of available memory units has decreased, creating a lesser number of non-identical routing information subsets by combining the routing information subsets having the smallest former size.
 24. A computer-readable storage medium comprising software instructions for execution in a computer of a method in accordance with claim
 1. 25. A computer readable storage medium containing a program element for execution by a computing device to implement a received routing information processing entity in a router, the router having a plurality of memory units accessible via separate access paths, the program element including: program code means for creating a plurality of non-identical routing information subsets from each received set of routing information; program code means for accessing the memory units via the separate access paths; and program code means for causing the routing information subsets created from a common set of routing information to be stored in respective ones of the plurality of memory units.
 26. A router for use in a communications network, comprising: a switch fabric having a plurality of communication ports; a plurality of interfaces, each interface being connected to a corresponding communication port of the switch fabric and connectable to a corresponding neighbour node in the network, each interface being capable of receiving routing information from the corresponding neighbour node; a plurality of memory units, each accessible via a separate access path; and a control entity connected to the interfaces and to the plurality of memory units, the control entity being operable to create a plurality of non-identical routing information subsets from each received set of routing information and to cause the routing information subsets created from a common set of routing information to be stored in respective ones of the plurality of memory units.
 27. A router as claimed in claim 26, wherein each interface is capable of receiving traffic packets from the corresponding neighbour node, each traffic packet having a destination address, each interface being adapted to modify a received traffic packet on the basis of the destination address of the traffic packet and on the basis of forwarding information, each interface being further adapted to send modified traffic packets to the corresponding communication port of the switch fabric.
 28. A router as claimed in claim 27, wherein the control entity is adapted to generate the forwarding information from the routing information subsets stored in the plurality of memory units.
 29. A router as claimed in claim 28, further comprising a common local memory unit for storing the forwarding information, wherein each interface has access to the common local memory unit.
 30. A router as claimed in claim 28, further comprising a plurality of separately accessible local memory units for storing the forwarding information, wherein each interface has access to a corresponding one of the local memory units.
 31. A router as claimed in claim 30, wherein each of the plurality of memory units is a respective one of the local memory units.
 32. A router as claimed in claim 26, wherein each interface is capable of receiving traffic packets from the corresponding neighbour node, each traffic packet having a destination address, each interface being adapted to modify each received traffic packet by appending to it information relating to a destination communication port that depends on the destination address of the traffic packet and on forwarding information, each interface being further adapted to send modified traffic packets to the corresponding communication port of the switch fabric; wherein the switch fabric is operable to output each received modified traffic packet via the communication port of the switch fabric which is the destination communication port associated with that modified traffic packet.
 33. A router as claimed in claim 32, each interface being adapted to: receive modified traffic packets from the corresponding communication port of the switch fabric; restore each modified traffic packet by removing from it information relating to the destination communication port, so as to leave the original destination address of the traffic packet; and send restored traffic packets to the corresponding neighbour node.
 34. A router as claimed in claim 26, wherein the control entity is connected directly to each of the plurality of memory units, thereby to establish said separate access paths of the memory units.
 35. A router as claimed in claim 34, wherein the control entity is connected directly to each of the plurality of interfaces.
 36. A router as claimed in claim 34, wherein the communication port connected to each interface establishes a respective first control link between that interface and the switch fabric, wherein the switch fabric further includes at least one further communication port connected to the control entity, thereby to establish a second control link, wherein the control entity receives routing information from a given one of the interfaces via the respective first control link and via the second control link.
 37. A router as claimed in claim 34, wherein the switch fabric includes at least one further communication port connected to the control entity, thereby to establish a control link, wherein the control entity receives routing information from a given one of the interfaces via the communication port of the switch fabric connected to that interface and via the control link.
 38. A router as claimed in claim 37, wherein the switch fabric includes a plurality of additional communication ports respectively connected to the plurality of memory units, thereby to establish said separate access paths of the memory units, wherein the switch fabric is further adapted to receive the routing information subsets from the control entity via said further communication port.
 39. A router as claimed in claim 38, wherein the control entity is connected directly to each of the plurality of interfaces.
 40. A router as claimed in claim 38, wherein communication port connected to each interface establishes a respective first control link between that interface and the switch fabric, wherein the switch fabric includes at least one further communication port connected to the control entity, thereby to establish a second control link, wherein the control entity receives routing information from a given one of the interfaces via the respective first control link and via the second control link.
 41. A router as claimed in claim 38, wherein the switch fabric includes at least one further communication port connected to the control entity, thereby to establish a control link, wherein the control entity receives routing information from a given one of the interfaces via the communication port of the switch fabric connected to that interface and via the control link.
 42. A router as claimed in claim 26, further comprising: a plurality of interface cards; wherein each of the plurality of interfaces is located on a corresponding one of the interface cards; and wherein each of the plurality of memory units is located on a corresponding one of the interface cards such that at least two of the interface cards contain different ones of the memory units.
 43. A router as claimed in claim 42, further comprising: a controller card; wherein the control entity is located on the controller card.
 44. A router as claimed in claim 26, further comprising: a plurality of controller cards; wherein each of the plurality of memory units is located on a corresponding one of the controller cards such that at least two of the controller cards contain different ones of the memory units.
 45. A router as claimed in claim 44, wherein the control entity is located on one of the controller cards.
 46. A router as claimed in claim 44, wherein the control entity is located on more than one of the controller cards.
 47. A router as claimed in claim 44, further comprising: at least one interface card; wherein each interface is located on a corresponding one of the at least one interface card.
 48. A router as claimed in claim 26, wherein each received set of routing information includes a set of routes and wherein the control entity being operable to create a plurality of non-identical routing information subsets from each received set of routing information includes the control entity being adapted to create a plurality of non-identical subsets of routes from the set of routes in the received set of routing information.
 49. A router as claimed in claim 48, each route having a specificity, wherein the plurality of non-identical subsets of routes is created from the set of routes in the received set of routing information on the basis of the specificity of each route in the set of routes in the received set of routing information.
 50. A router as claimed in claim 48, wherein the control entity being operable to cause the routing information subsets created from a common set of routing information to be stored in respective ones of the plurality of memory units includes the control entity being adapted to cause each subset of routes created from a common set of routes to be stored in a respective one of the memory units associated with that subset.
 51. A router as claimed in claim 26, wherein each routing information subset from among the routing information subsets created from a common set of routing information has a portion that is not present in any of the other routing information subsets created from said common set of routing information.
 52. A router as claimed in claim 51, wherein each received set of routing information includes a set of routes and wherein being operable to create a plurality of non-identical routing information subsets from each received set of routing information includes the control entity being operable to create a plurality of non-identical identical subsets of routes from the set of routes in the received set of routing information.
 53. A router as claimed in claim 52, wherein the control S entity being operable to cause the routing information subsets created from a common set of routing information to be stored in respective ones of the plurality of memory units includes the control entity being adapted to cause each subset of routes created from a common set of routes to be stored in a respective one of the memory units associated with that subset.
 54. A router as claimed in claim 53, wherein the control entity is further adapted to create a forwarding sub-table associated with each memory unit from all subsets of routes stored in that memory unit.
 55. A router as claimed in claim 54, wherein the control entity is further adapted to cause (each forwarding sub-table to be stored in the memory unit associated with that forwarding sub-table.
 56. A router as claimed in claim 55, wherein each interface is capable of receiving traffic packets from the corresponding neighbour node, each traffic packet having a destination address, each interface being adapted to modify a received traffic packet on the basis of the destination address of the traffic packet and on the basis of a complete forwarding table, each interface being further adapted to send modified traffic packets to the corresponding communication port of the switch fabric; wherein the control entity is adapted to create the complete forwarding table from all the forwarding sub-tables.
 57. A router as claimed in claim 55, wherein the control entity is further adapted to create, for each memory unit and for each neighbour node, a partial output routing information base associated with that memory unit and that neighbour node from all subsets of routes stored in that memory unit.
 58. A router as claimed in claim 57, wherein the control entity is further adapted to create, for each neighbour node, a complete output routing information base associated with that neighbour node from all partial output routing information bases associated with that neighbour node.
 59. A router as claimed in claim 58, wherein the control entity is further adapted to advertise to each of the at least one neighbour node the complete output routing information base associated with that neighbour node.
 60. A router as claimed in claim 26, wherein each received set of routing information includes a set of prefixes and associated attributes and wherein the control entity being adapted to create a plurality of non-identical routing information subsets from each received set of routing information includes the control entity being adapted to create a plurality of non-identical subsets of prefixes and associated attributes from the set of prefixes and associated attributes in the received set of routing information.
 61. A router as claimed in claim 26, wherein each received set of routing information includes a set of learned locations and wherein the control entity being adapted to create a plurality of non-identical routing information subsets from each received set of routing information includes the control entity being adapted to create a plurality of non-identical subsets of learned locations from the set of learned locations in the received set of routing information.
 62. A router as claimed in claim 43, wherein the control entity is further adapted to identify a set of at least two available memory units among the plurality of memory units, wherein creating a plurality of non-identical routing information subsets from each received set of routing information includes creating as many non-identical routing information subsets as there are memory units in the set of available memory units.
 63. A router as claimed in claim 43, wherein each interface card is operable to transmit a signal to the control entity indicative of whether that interface card comprises an available memory unit.
 64. A router as claimed in claim 63, wherein causing the routing information subsets created from a common set of routing information to be stored in respective ones of the plurality of memory units includes causing the routing information subsets created from the common set of routing information to be stored in respective ones of the at least two memory units in the set of available memory units.
 65. A router as claimed in claim 63, wherein the control entity is further adapted to: identify a new set of at least two available memory units among the plurality of memory units; and create as many non-identical routing information subsets from each received set of routing information as there are memory units in the new set of available memory units.
 66. A router as claimed in claim 65, wherein the control entity is further adapted to cause the routing information subsets created from the common set of routing information to be stored in respective ones of the at least two memory units in the new set of available memory units.
 67. A router as claimed in claim 63, wherein the control entity is further adapted to: identify a new set of at least two available memory units among the plurality of memory units; if the number of available memory units has increased, create a greater number of non-identical routing information subsets; and if the number of available memory units has decreased, create a lesser number of non-identical routing information subsets.
 68. A router as claimed in claim 67, each routing information subset being associated with a size prior to identification of the new set of at least two available memory units, wherein the control entity is further adapted to: if the number of available memory units has increased, create a greater number of non-identical routing information subsets by splitting the routing information subsets having the largest former size.
 69. A router as claimed in claim 67, each routing information subset being associated with a size prior to identification of the new set of at least two available memory units, wherein the control entity is further adapted to: if the number of available memory units has decreased, create a lesser number of non-identical routing information subsets by combining the routing information subsets having the smallest former size.
 70. A router as claimed in claim 68, wherein the control entity is further adapted to: if the number of available memory units has decreased, create a lesser number of non-identical routing information subsets by combining the routing information subsets having the smallest former size.
 71. A router as claimed in claim 57, wherein at least two of the partial output routing information bases for a given neighbour node are created in parallel.
 72. A router as claimed in claim 57, wherein all of the partial output routing information bases for a given neighbour node are created in parallel.
 73. A method of distributing routing information among a plurality of memory units, the routing information including a plurality of routes, each route having a corresponding property, the method comprising: associating at least one of the memory units with each route on the basis of said property of that route, at least one of the plurality of routes being associated with fewer than all of the memory units; causing each route to be stored in each of the at least one memory unit associated with that prefix.
 74. A method as claimed in claim 73, wherein each route includes a prefix and wherein associating at least one of the memory units with a route includes: determining a length of the route's prefix; and associating at least one of the memory units with the route on the basis of the length of the route's prefix.
 75. A method as claimed in claim 74, wherein the number of memory units associated with a route is inversely proportional to the length of the route's prefix.
 76. A method as claimed in claim 73, wherein each route includes a prefix and wherein associating at least one of the memory units with a route includes: determining a bit pattern of the route's prefix; and associating at least one of the memory units with the route on the basis of the bit pattern of the route's prefix.
 77. A method as claimed in claim 76, each bit pattern having a density of logical ones, wherein the number of memory units associated with a route is a function of the density of the bit pattern of the route's prefix.
 78. A method as claimed in claim 76, each prefix being associated with a respective bit mask, wherein determining the bit pattern of a prefix includes masking the prefix with the bit mask associated with the prefix.
 79. A method as claimed in claim 73, wherein each route includes a prefix and wherein associating at least one of the memory units with a route includes: determining a value of the route's prefix; and associating at least one of the memory units with the route on the basis of the value of the route's prefix.
 80. A method as claimed in claim 79, wherein the number of memory units associated with the route is inversely proportional to the value of the route's prefix.
 81. A method as claimed in claim 79, each prefix being associated with a respective bit mask, wherein determining the value of a prefix includes masking the prefix with the bit mask associated with the prefix and computing a numeric value of any unmasked bits in the prefix.
 82. A method as claimed in claim 73, wherein each route includes a prefix and wherein associating at least one of the memory units with a route includes: determining a bit pattern of the prefix; and associating at least one of the memory units with the route's prefix on the basis of the bit pattern of the prefix so as to permit parallel computation of partial output routing information bases on the basis of the prefixes associated with the routes in each memory unit.
 83. A method as claimed in claim 73, wherein associating at least one of the memory units with a route includes: associating at least two of the memory units with each route on the basis of that route, at least one route not being associated with all of the memory units; and wherein causing each of the at least one route to be stored in the at least one memory unit associated with that route includes causing each of the at least one route to be stored in the at least two memory units associated with that route.
 84. A method as claimed in claim 83, wherein each route includes a prefix and wherein associating at least two of the memory units with each route includes: determining a bit pattern of the route's prefix; and associating at least two of the memory units with the route on the basis of the bit pattern of the route's prefix.
 85. A computer readable storage medium comprising software instructions for execution in a computer of a method in accordance with claim
 73. 86. A computer readable storage medium comprising software instructions for execution in a computer of a method in accordance with claim
 82. 87. A method as claimed in claim 73, wherein said property of a route is a specificity of the route. 